/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package BO;

import DAO.DAOUsuario;
import java.util.List;
import model.Usuario;
import org.hibernate.HibernateException;

/**
 *
 * @author Jefferson
 */
public class BOUsuario {
    private BOUsuario() {}
    
    private static BOUsuario instance = null;
    public static BOUsuario getInstance() {
        if (instance == null) {
            instance = new BOUsuario();
        }
        return instance;
    }
    
    public List listarTodos(String ordem) throws HibernateException {
        DAOUsuario dao = DAOUsuario.getInstance();
        return dao.listarTodos(Usuario.class, ordem);
    }
}